from datetime import time
from enum import Enum

class TradingSession(Enum):
    """
    股票交易时段枚举类
    """
    # 集合竞价时间
    CALL_AUCTION_TIME = time(9, 25)
    # 早盘开盘时间
    MORNING_START_TIME = time(9, 30)
    # 早盘闭盘时间
    MORNING_END_TIME = time(11, 30)
    # 午盘开盘时间
    MIDDAY_START_TIME = time(13, 0)
    # 午盘闭盘时间
    MIDDAY_END_TIME = time(14, 57)
    # 尾盘时间
    CLOSE_ORDER_TIME = time(14, 50)
    # 休市时间
    CLOSE_TIME = time(15, 0)